package org.goldenport.g3.sample

import org.goldenport.g3._

/**
 * @since   Mar. 31, 2010
 * @version Sep. 18, 2010
 * @author  ASAMI, Tomoharu
 */
class Split extends G3Application {
  component('reporter, new SplitReporter)

  start(List(1, 2, 3, 4, 5)) split() publish("reporter")
}

class SplitReporter extends G3Component("split") {
  override def do_Action(in: AnyRef, parcel: G3Parcel, ctx: G3AgentContext): AnyRef = {
    "Split Reporter:" + in
  }
}
